!define TEST_SYSTEM {slim}
!*> Scenarios
!include -c <SuiteAcceptanceTests.ScenarioLibrary

!|scenario|import|importedPage|into|importingPage|
|check|request page|@importingPage?responder=import&remoteUrl=http://localhost:${INTERNAL_PORT}/@importedPage|200|

!|scenario|Water mark and edit buttons should be on page|page|
|check|request page|@page|200|
|ensure|content matches|<body class="imported">|
|ensure|content matches|Edit Locally|
|ensure|content matches|Edit Remotely|

!|scenario|Water mark and edit buttons should not be on page|page|
|check|request page|@page|200|
|reject|content matches|<body class="imported">|
|reject|content matches|Edit Locally|
|reject|content matches|Edit Remotely|

!|script|page driver|

*!

!|script|
|given page|ImportingPage|
|given page|ImportedPage|
|given page|ImportedPage.ImportedChild|
|import|ImportedPage|into|ImportingPage|
|Water mark and edit buttons should be on page|ImportingPage.ImportedChild|
||
|Water mark and edit buttons should not be on page|ImportingPage|
|Water mark and edit buttons should not be on page|ImportedPage|
|Water mark and edit buttons should not be on page|ImportedPage.ImportedChild|

